package bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import common.RowMapper;

public class GoodsAllocationRowMapper implements RowMapper<GoodsAllocation> {

	@Override
	public GoodsAllocation mapper(ResultSet rs) throws SQLException {
		GoodsAllocation ga=new GoodsAllocation();
		ga.setId(rs.getInt("id"));
		ga.setGoodsid(rs.getInt("goodsid"));
		ga.setAttrValueid(rs.getInt("attr_valueid"));
		return ga;
	}

}
